#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

#include <stdio.h>

void printEvenBits(int num) {
    for (int i = 31; i >= 0; i -= 2) {
        printf("%d ", (num >> i) & 1);
    }
    printf("\n");
}

void printOddBits(int num) {
    for (int i = 30; i >= 0; i -= 2) {
        printf("%d ", (num >> i) & 1);
    }
    printf("\n");
}

int main() {
    int num;
    
    printf("Enter an integer: ");
    scanf("%d", &num);
    
    printf("Even bits: ");
    printEvenBits(num);
    
    printf("Odd bits: ");
    printOddBits(num);
    
    return 0;
}
